package feedCons;

public class Test {
	public static void main(String args[]){
		Feeder f=new Feeder("chen");
		Lion l=new Lion("Lion","meat","tim");
		System.out.println("the kinds of animal is "+l.getAnimalKind());
		f.feedAnimal(l);
		Monkey m[]=new Monkey[3];
		m[0]=new Monkey("Monkey","banana","a");
		m[1]=new Monkey("Monkey","banana","b");
		m[2]=new Monkey("Monkey","banana","c");
		for(int i=0;i<m.length;i++){
			f.feedAnimal(m[i]);
			System.out.println("the kinds of animal is "+m[i].getAnimalKind());
		}
		Pigeon p[]=new Pigeon[3];
		p[0]=new Pigeon("Pigeon","xiaomai","ia");
		p[1]=new Pigeon("Pigeon","xiaomai","ib");
		p[2]=new Pigeon("Pigeon","xiaomai","ic");
		for(int i=0;i<p.length;i++){
			f.feedAnimal(p[i]);
			System.out.println("the kinds of animal is "+p[i].getAnimalKind());
		}
	}
	
	
	
}
